import React from "react";
import {
  BarsOutlined,
  ClusterOutlined,
  DashboardOutlined,
  InfoCircleOutlined,
  MenuOutlined,
  RadiusSettingOutlined,
  StockOutlined,
  DesktopOutlined,
  CodeOutlined,
} from "@ant-design/icons";

interface AntDIconProps {
  type?: string;
}

const AntDIcon: React.FC<AntDIconProps> = (props) => {
  const {type} = props;
  switch (type) {
    case "BarsOutlined":
      return <BarsOutlined/>;
    case "StockOutlined":
      return <StockOutlined/>;
    case "ClusterOutlined":
      return <ClusterOutlined/>;
    case "DashboardOutlined":
      return <DashboardOutlined/>;
    case "InfoCircleOutlined":
      return <InfoCircleOutlined/>;
    case "RadiusSettingOutlined":
      return <RadiusSettingOutlined/>;
    case "DesktopOutlined":
      return <DesktopOutlined/>
    case "CodeOutlined":
      return <CodeOutlined/>
    default:
      return <MenuOutlined/>;
  }
};

export default AntDIcon;
